package com.webbei.shoppingCar.service.impl;

import java.util.List;
import java.util.Map;

import com.webbei.pojo.Customer;
import com.webbei.pojo.Customs;
import com.webbei.pojo.Orders;
import com.webbei.shoppingCar.dao.shoppingCarDao;
import com.webbei.shoppingCar.service.shoppingCarService;

public class shoppingCarServiceImpl implements shoppingCarService{
	private shoppingCarDao shopDao;

	public shoppingCarDao getShopDao() {
		return shopDao;
	}

	public void setShopDao(shoppingCarDao shopDao) {
		this.shopDao = shopDao;
	}

	public Customer getCustomerByUserName(String userName) {
		return shopDao.getCustomerByUserName(userName);
	}

	public Customs getCustomsById(Long id) {
		return shopDao.getCustomsById(id);
	}

	public Orders getOrdersById(Long id) {
		return shopDao.getOrdersById(id);
	}

	public void saveOrder(Orders o) {
		shopDao.saveOrder(o);
	}
	public void saveOrder1(Orders o) {
		shopDao.saveOrder1(o);
	}

	public Integer getIndusByProductId(Integer id) {
		return shopDao.getIndusByProductId(id);
	}

	public Integer getOrderStateByOrderId(Long id) {
		return shopDao.getOrderStateByOrderId(id);
	}

	public String getBgPicByBgPicId(Integer id) {
		return shopDao.getBgPicByBgPicId(id);
	}

	@Override
	public Integer getCustomerCountAtLogin(Map<String, String> map) {
		// TODO Auto-generated method stub
		return shopDao.getCustomerCountAtLogin(map);
	}

	@Override
	public String getUserNameByEmail(String email) {
		// TODO Auto-generated method stub
		return shopDao.getUserNameByEmail(email);
	}

	@Override
	public String getUserPasswordByUserName(String username) {
		// TODO Auto-generated method stub
		return shopDao.getUserPasswordByUserName(username);
	}

	@Override
	public void changeUserPassword(Map map) {
		// TODO Auto-generated method stub
		shopDao.changeUserPassword(map);
	}

	@Override
	public Integer isHasRelatedThird(Map m1) {
		// TODO Auto-generated method stub
		return shopDao.isHasRelatedThird(m1);
	}

	@Override
	public void updateCustomAtshop(Customs c) {
		// TODO Auto-generated method stub
		shopDao.updateCustomAtshop(c);
	}

	@Override
	public String getTypesNameByUrl(String url) {
		// TODO Auto-generated method stub
		return shopDao.getTypesNameByUrl(url);
	}

	@Override
	public Integer checkUserPassword(Map m) {
		// TODO Auto-generated method stub
		return shopDao.checkUserPassword(m);
	}

	public Integer getIndusByProductName(String productName) {
		// TODO Auto-generated method stub
		return shopDao.getIndusByProductName(productName);
	}

	public void saveOrder2(Orders o) {
		// TODO Auto-generated method stub
		shopDao.saveOrder2(o);
	}

	@Override
	public Integer getIndusByAlias(String name) {
		// TODO Auto-generated method stub
		return shopDao.getIndusByAlias(name);
	}

	@Override
	public Integer getProductidByAlias(String string) {
		// TODO Auto-generated method stub
		return shopDao.getProductidByAlias(string);
	}

	@Override
	public Long getNewTid() {
		// TODO Auto-generated method stub
		return shopDao.getNewTid();
	}

	public void updateOrderStateOfTradeSellerShip(long parseLong) {
		// TODO Auto-generated method stub
		shopDao.updateOrderStateOfTradeSellerShip(parseLong);
	}

	public void changeMemo(Long tradeid, String buyerMessage, String sellerMemo) {
		// TODO Auto-generated method stub
		shopDao.changeMemo(tradeid,buyerMessage,sellerMemo);
	}

	public void changOrderStateToZero(long parseLong) {
		// TODO Auto-generated method stub
		shopDao.changOrderStateToZero(parseLong);
	}

	@Override
	public void saveOrder3(Orders c) {
		// TODO Auto-generated method stub
		shopDao.saveOrder3(c);
	}

	public List<Customs> getCustomsByTradeid(Long tid) {
		// TODO Auto-generated method stub
		return shopDao.getCustomsByTradeid(tid);
	}

	@Override
	public void createCustomAtshop(Customs c) {
		// TODO Auto-generated method stub
		shopDao.createCustomAtshop(c);
	}

	@Override
	public void testProcedure() {
		// TODO Auto-generated method stub
		shopDao.testProcedure();
	}

	public void saveRefundOrder(String refundId, String sessionKey) {
		shopDao.saveRefundOrder(refundId,sessionKey);

	}

	public void changOrderStateToFour(long parseLong) {
		// TODO Auto-generated method stub
		shopDao.changOrderStateToFour(parseLong);
	}

	public void changOrderStateToThree(long parseLong) {
		// TODO Auto-generated method stub
		shopDao.changOrderStateToThree(parseLong);
	}

	public void changOrderStateToOne(Long tid) {
		// TODO Auto-generated method stub
		shopDao.changOrderStateToOne(tid);
	}

	public void addSellCount(Integer productIdByBgPic) {
		// TODO Auto-generated method stub
		shopDao.addSellCount(productIdByBgPic);
	}

	public void subSellCount(Integer productIdByBgPic) {
		// TODO Auto-generated method stub
		shopDao.subSellCount(productIdByBgPic);
	}
}
